package com.youle.cosmetology;

import org.junit.Test;

import com.youle.base.COSMETOLOGY_URLCOMMON;
import com.youle.base.InterfaceBaseTest;

public class CosmetologyTest extends InterfaceBaseTest {

	@Override
	public String getUrl() {
		return COSMETOLOGY_URLCOMMON.DEVELOP_URL;
		//return COSMETOLOGY_URLCOMMON.ONLINETEST_URL;
		//return COSMETOLOGY_URLCOMMON.TEST_URL;
		//kfdilxlnsdfsdjhjhfjkashsljhasdfjsdjk
		//MRYK9fxIoXR9RW808a1G9fxIoXSCZ
	}

	@Test
	public void history() {
		paramMap.put("method", "pillow.sleep.record");
		paramMap.put("sessionKey", "kfdilxlnsdfsdjhjhfjkashsljhasdfjsdjk");
		paramMap.put("userId", "1");
		paramMap.put("sleepTime",System.currentTimeMillis()+"");
		paramMap.put("sleepLong", "243");
		paramMap.put("toSleep", "360");
		paramMap.put("noise", "64");
		paramMap.put("deepSleep", "35");
		paramMap.put("move", "5");
		paramMap.put("awake", "2");
		paramMap.put("snoring", "75");
		paramMap.put("sleepAge", "26");
		paramMap.put("sleepScore", "95");
		paramMap.put("timestamp",System.currentTimeMillis()+"");
	
	}
	
	@Test
	public void saveUserDetection() {
		paramMap.put("method", "pillow.sleep.getRecord");
		paramMap.put("sessionKey", "kfdilxlnsdfsdjhjhfjkashsljhasdfjsdjk");
		paramMap.put("type", "1");
		paramMap.put("userId", "1");
		paramMap.put("page", "2");
		//paramMap.put("rows", "1");
		paramMap.put("timestamp", System.currentTimeMillis()+"");

	}
	
	@Test
	public void getUserDetection() {
		paramMap.put("method", "getHistory.detection");
		paramMap.put("sessionKey", "01d905f1b51007f653750f20c789699b");
		paramMap.put("type", "3");
		paramMap.put("timestamp", System.currentTimeMillis()+"");
	}

	@Test
	public void getlately() {
		paramMap.put("method", "history.detail");
		paramMap.put("sessionKey", "2c21c666be99a238d227c0f240031255");
		paramMap.put("type", "3");
		paramMap.put("part", "3");
		paramMap.put("timestamp",System.currentTimeMillis()+"");
	}
	
	@Test
	public void getlatelys() {
		paramMap.put("method", "testAnalysis.push");
		paramMap.put("sessionKey", "8e993bd6e084dada06fd7714ec2668dc");
		
		paramMap.put("type", "1");
		paramMap.put("water", "25");
		
		
		paramMap.put("timestamp",System.currentTimeMillis()+"");
	}
	
	@Test
	public void updatestatum() {
		paramMap.put("method", "update.detection.statu");
		paramMap.put("sessionKey", "kfdilxlnsdfsdjhjhfjkashsljhasdfjsdjk");
		paramMap.put("id", "2");
		paramMap.put("userId", "1");
		paramMap.put("type", "3");

		paramMap.put("timestamp",System.currentTimeMillis()+"");
	}
	
}